const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar ? state.user.avatar : JSON.parse(sessionStorage.getItem('userDetail')).avatar,
  name: state => state.user.name? state.user.name : JSON.parse(sessionStorage.getItem('userDetail')).name,
  roles: state => state.user.roles? state.user.roles : JSON.parse(sessionStorage.getItem('userDetail')).roles
}
export default getters
